package com.aabte.mybatis.mapper.service;

import com.aabte.mybatis.mapper.bean.Employee;
import com.aabte.mybatis.mapper.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    public List<Employee> queryAllEmployee() {
        return employeeMapper.selectAll();
    }
}
